package com.hunau.novel_reading.mapper;

import com.hunau.novel_reading.entity.Books;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HistoryMapper {
    List<Books> selectBooksByUsername(String username);
    Integer insertHistoryRecordByUserAndBookName(Integer userId, Integer bookId);
    List<Books> selectBooksByUserId(Integer userId);
}
